﻿using System.Web;
using System.Web.Mvc;
using ZSZ.CommonMVC;

namespace TestService
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            //filters.Add(new HandleErrorAttribute());

            //自定义错误处理
            filters.Add(new ResetHandleErrorAttribute());

            //Json.Net 
            filters.Add(new JsonNetActionFilter());
        }
    }
}
